
import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(-3,3,50)

y1 = 2*x + 1
y2 = x**2

plt.figure()
plt.plot(x,y2)
plt.plot(x,y1,color = 'red',linewidth=1.5,linestyle = "--")
plt.yticks([-2,1.2],[r'$bad$',r'$good$'])


plt.show()